﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Chinook.Facade;
using Chinook.Facade.Factory;
using Chinook.Facade.ViewModel;
using Chinook.Facade.Messaging;
namespace Chinook.Web
{
    public partial class Profiler : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            AddExternalJavaScript("js/YUI/datasource/datasource-min.js");
            AddExternalJavaScript("js/YUI/datatable/datatable-min.js");
            AddExternalJavaScript("js/YUI/paginator/paginator-min.js");          
            AddExternalJavaScript("js/Jquery/jquery.ui.datepicker.js");
            AddExternalJavaScript("js/YUIHelperByVMO/DatatableHelper.js");
            AddExternalJavaScript("js/Jquery/flexigrid.pack.js");
            IProfilerService ps = ChinookWebFactory.ProfilerService;
            var classes = ps.DistinctClasses();
            var methods = ps.DistinctMethods("Dole.EPM.Facade.DoleEpmAppService");
            //Classname
            dropClassName.DataSource = classes;
            dropClassName.DataBind();
            //methodname
            dropMethodName.DataSource = methods;
            dropMethodName.DataBind();
        }
    }
}
